package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.CzEquipmentAttrMapper;
import com.ruoyi.business.domain.CzEquipmentAttr;
import com.ruoyi.business.service.ICzEquipmentAttrService;

/**
 * 设备信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-02-07
 */
@Service
public class CzEquipmentAttrServiceImpl implements ICzEquipmentAttrService 
{
    @Autowired
    private CzEquipmentAttrMapper czEquipmentAttrMapper;

    /**
     * 查询设备信息
     * 
     * @param id 设备信息主键
     * @return 设备信息
     */
    @Override
    public CzEquipmentAttr selectCzEquipmentAttrById(String id)
    {
        return czEquipmentAttrMapper.selectCzEquipmentAttrById(id);
    }

    /**
     * 查询设备信息列表
     * 
     * @param czEquipmentAttr 设备信息
     * @return 设备信息
     */
    @Override
    public List<CzEquipmentAttr> selectCzEquipmentAttrList(CzEquipmentAttr czEquipmentAttr)
    {
        return czEquipmentAttrMapper.selectCzEquipmentAttrList(czEquipmentAttr);
    }

    /**
     * 新增设备信息
     * 
     * @param czEquipmentAttr 设备信息
     * @return 结果
     */
    @Override
    public int insertCzEquipmentAttr(CzEquipmentAttr czEquipmentAttr)
    {
        return czEquipmentAttrMapper.insertCzEquipmentAttr(czEquipmentAttr);
    }

    /**
     * 修改设备信息
     * 
     * @param czEquipmentAttr 设备信息
     * @return 结果
     */
    @Override
    public int updateCzEquipmentAttr(CzEquipmentAttr czEquipmentAttr)
    {
        return czEquipmentAttrMapper.updateCzEquipmentAttr(czEquipmentAttr);
    }

    /**
     * 批量删除设备信息
     * 
     * @param ids 需要删除的设备信息主键
     * @return 结果
     */
    @Override
    public int deleteCzEquipmentAttrByIds(String[] ids)
    {
        return czEquipmentAttrMapper.deleteCzEquipmentAttrByIds(ids);
    }

    /**
     * 删除设备信息信息
     * 
     * @param id 设备信息主键
     * @return 结果
     */
    @Override
    public int deleteCzEquipmentAttrById(String id)
    {
        return czEquipmentAttrMapper.deleteCzEquipmentAttrById(id);
    }
}
